package com.sailing.lianxi.design.single;

import sun.security.jca.GetInstance;

/**
 * 懒汉模式 ，线程不安全
 * @author Administrator
 *
 */
public class Singleton2 {

	private static Singleton2 obj = null;
	
	private Singleton2(){};
	
	public static synchronized Singleton2 getInstance(){
		if(null == obj){
			obj = new Singleton2();
		}
		return obj;
	}
}
